<%

'/**
' * ASP Stats Generator - Powerful and reliable ASP website counter
' *
' * This file is part of the ASP Stats Generator package.
' * (c) 2003-2007 Simone Carletti <weppos@weppos.net>, All Rights Reserved
' *
' * 
' * COPYRIGHT AND LICENSE NOTICE
' *
' * The License allows you to download, install and use one or more free copies of this program 
' * for private, public or commercial use.
' * 
' * You may not sell, repackage, redistribute or modify any part of the code or application, 
' * or represent it as being your own work without written permission from the author.
' * You can however modify source code (at your own risk) to adapt it to your specific needs 
' * or to integrate it into your site. 
' *
' * All links and information about the copyright MUST remain unchanged; 
' * you can modify or remove them only if expressly permitted.
' * In particular the license allows you to change the application logo with a personal one, 
' * but it's absolutly denied to remove copyright information,
' * including, but not limited to, footer credits, inline credits metadata and HTML credits comments.
' *
' * For the full copyright and license information, please view the LICENSE.htm
' * file that was distributed with this source code.
' *
' * Removal or modification of this copyright notice will violate the license contract.
' *
' *
' * @category        ASP Stats Generator
' * @package         ASP Stats Generator
' * @author          Simone Carletti <weppos@weppos.net>
' * @copyright       2003-2007 Simone Carletti, All Rights Reserved
' * @license         http://www.weppos.com/asg/en/license.asp
' * @version         SVN: $Id: login.asp 13 2007-08-03 13:05:34Z weppos $
' */
 
'/* 
' * Any disagreement of this license behaves the removal of rights to use this application.
' * Licensor reserve the right to bring legal action in the event of a violation of this Agreement.
' */


const ASG_STR_ICON_HEX_UNKNOWN_BROWSER = "47494638396114001400C4000086A5D6C5DDF1BFCDD87091CCD9E2EAD3E5F3476EBED5DDE3E2E9EECCE2F2CBD3DABFD8ECBFD2E1BFD5E5A6C2E5EEF1F4C0DAEEE9EDF0BFD0DCCCD9E3BFD6E8FCFDFDB3CDE9C2CCD3CEDEEB9AB8DEA2BEE2F1F4F7CAD6E0BFD1DF234EB0FFFFFF21F90400000000002C00000000140014000005D5E0278E646992D51611C741204F758A1B421478916013B19D9B5B4E97480420934829380C6834968074C1798C2A8821C0C3F5181C1048E320FB6C30B984A1CB3540160B89F283C014135BAFA3AB59503A042207770916190019035D16140D0C0A221C5293528A5C008D8E179194611A5D988E0C1D9B1F1361A80B196D8D0CA312901F040D70B5890300A21D12020722111D7014C39606AEBB12177315070C990DC51DC8BD651F0F0A0CA2AEAF12BC0A5624110A12C7C8DD020A73250F070202DDBC021707E0271511070A17170A0711D53302960801003B"

const ASG_STR_ICON_HEX_BLANK = "47494638396114001400800000FFFFFF00000021F90400000000002C0000000014001400000211848FA9CBED0FA39CB4DA8BB3DEBCFBAF15003B"


'/**
' * Returns Hex string for requested Browser
' * 
' * If the function is unable to find a match
' * the unknown/transparent icon is returned.
' * ASG_STR_ICON_HEX_UNKNOWN_BROWSER holds current unknown icon hex.
' * 
' * Identified icons:
' * 
' * __ microsoft internet explorer
' *   \__ (instr)   microsoft internet explorer 7
' *   \__ (instr)   microsoft internet explorer 6
' *   \__ (instr)   microsoft internet explorer 5
' *   \__ (instr)   microsoft internet explorer
' * __ firefox
' *   \__ (instr)   firefox 2
' *   \__ (instr)   firefox
' *   \__ (instr)   firebird
' * __ mozilla
' *   \__ (instr)   mozilla 1.8
' *   \__ (instr)   mozilla 1.7
' *   \__ (instr)   mozilla 1.6
' *   \__ (instr)   mozilla
' * __ opera
' *   \__ (left)    opera 9
' *   \__ (left)    opera 8
' *   \__ (left)    opera
' * __ camino e phoenix
' *   \__ (left)    camino
' *   \__ (left)    phoenix
' *   \__ (left)    chimera
' * __ ie clones
' *   \__ (left)    avantbrowser
' *   \__ (left)    maxthon
' *   \__ (left)    myie
' *   \__ (left)    crazybrowser
' * __ netscape
' *   \__ (left)    netscape 7
' *   \__ (left)    netscape 6
' *   \__ (left)    netscape 4
' * __ frontpage
' *   \__ (left)    frontpage
' * __ aol
' *   \__ (left)    aol explorer
' *   \__ (left)    aol
' * __ other
' *   \__ (left)    
' * __ mobile
' *   \__ (strict)  alcatel mobile
' *   \__ (strict)  motorola mobile
' *   \__ (strict)  nokia mobile
' *   \__ (strict)  sonyericsson mobile
' * __ robot
' *   \__ (strict)  robot
' * 
' * 
' * @param  string  browser
' * @return string  
' */
public function getBrowserIconHex(browser)

    strValue = lcase(trim(browser))


    ' (Unknown)
    if strValue = "(unknown)" then
        strHex = ASG_STR_ICON_HEX_BLANK


    '*
    '* Microsoft Internet Explorer
    '* ---------------------------

    elseif InStr(strValue, "microsoft internet explorer 7") > 0 then
        strHex = "47494638396114001400C40000EFDCA1EED06AAFCBDA0E3860035F995F92ACF8CB2DFAF0C4C3C7CBFDFCF993AAB30392CDEBB4179CAE61A6BAC42688B258A7C8CFDAE003A9E82CC2F37C87594D697EEEEDED0177BF10A5CB73E2FCD9E2EA36A3DAFCF8E9029DDDE0DEE0FFFFFF21F90400000000002C00000000140014000005EBE0278E24C91DC09194AC7804410A00AD8538081230F408AC24054521001802828282E3027E38950AD18810081C858AE5732045950143610C293F2ACE8F6340688487588C1C435078076E03652B822CFE0468221E78610D1511891A0A7F0B04031E22111461060404178D1D1D0B178F082E0D060615987F9B9C9E0303A0092F0C0D970F898AB411085B0707060C0F040B0F4C22496351B9070C1417179B051E360FA90382AFA517121313651B12129D03112EA38404D819E71913129E0E23C8341605CC13E7131D1715A0231C3C23110A1B026E802020011F111C76E842A122419A120912C20020AC058910003B"

    elseif InStr(strValue, "microsoft internet explorer 6") > 0 then
        strHex = "47494638396114001400C40000249AE9FDFCFACEEFF46891AA63CCEEB2EFF795B3C4B5CDD84D90C7EBFDFE497AAC8F9FA547ADED71A9C87BDDF797E9F3ABD2EDFDFAEA248EC7C4DFEA54B0D43B98E3D0DADFE2F4F6F6E8DA33B9EBDDE9F0F2EEE9B4E7E599C1D9D8E4E62B72A121F90400000000002C00000000140014000005F460208ED13826C2714C896926707271C66274C6D1BE42513C0E02A5C10A4C0CBB008AE30312320C8A4110B01C4EBD66309301302A448F6734F315841209600D006B02A500E731177E168B81BA8DE8C003171D750C1F062210156C15031B2529024F0C120894896C0C08631117815C6C0069151215150C035725100C5D001F0AAFB094080313221714ACAD0718181A0DBF1D1D3A87AB6C120D17011DA1C20BC909046B5FA293080AA50405030BB684D7A49FA50E050D03C90102D6160608A4A40C040E0F03036322028B7007B208BFF406E76C515000610284010A06185878C09E8B09085F2DB000C3858B08113658B0F0C6A2C710003B"

    elseif InStr(strValue, "microsoft internet explorer 5") > 0 then
        strHex = "47494638396114001400C400006D9DE18EAFE3F4F6F9ACC7ECA6B0B7C2D8EF3168EF154E9D0793F240478873FCFF4E67A107AFFDC1C0945581DB0A228CE8EDF71A5DF01F75EBD2E3F62A91ED36D6FE3272D7847F5F0C5ED60E5BB92A60F9245FCAE3E3EEC3C7E0808FC5FFFFFF21F90400000000002C00000000140014000005F1E0278EE42814C554AEA2000D401C0CAC1B0440E04881F009031A0912B0600C1A83048108A82681A1278371782C4B86963299087F9EC786407028118C4A85418190028F4583A0CC59D28A0AE22B48241A0D06113D021D16150A0A0C003E1F1C09178111060128051608886C6E8E17170E1AA1A14B4C5A5A05220D170B1A1811A2061614B3B4A81F17090618541A011DBF031E31399C171B110707AE033E850EC300230B1B0F0F0719933900C712121851220B110BD5D711E7E7A1110E8D1F0B060504E554AE1AE70E2A235710020409F3193650CA37A2C3020003087858E0A1A1AF02ED4C046BD88183808B115968DC1802003B"

    ' Includes all IE versions not previously matched
    elseif InStr(strValue, "microsoft internet explorer") > 0 then
        strHex = "47494638396114001400C400008C8C765050FFEFEFF80202E928284C0101D09E9E2FA7A7D0C5C5D27777777373BA2B2BB679799A0404B1E4E44ADCDCFC8989C5AEAEB32323FEB7B76FCBCBE18181F959596A5555A9020276D3D3E23F3F828C8CB85D5D44C1C1FF0000FFFFFFFF21F90400000000002C00000000140014000005D0E0278E24D99D5DA98A421704D559ADC2F30692B70863F09495DCC043F40C1A0A5EE537520C2F8961D1B85B360B8B49C25828488D8A992883593800C64DC482F936989F0BE16C3C8C1298E26244994F880D0782070C794403761F19061339460390914503102213131A1E058791905E03051B220668050D1E0D09AAAB0CAD0C08A30B1E185E051424160BBA0B89060B05180D43050719191A9B804C1CB318C19B5DC98795221C036BCE0DD24505D422097B1F086CCFD117192500054B0F151804F00407B72A0210CE1817F42BFCFD2A21003B"


    '*
    '* Firefox
    '* ---------------------------

    elseif InStr(strValue, "firefox 2") > 0 then
        strHex = "47494638396114001400C40000F28C27F4CB16AEA29852ABCFF0EFF0A69168E77A162C5F936395BBA47655A6E4EDFBE938A4553ADB6D18CCCCD6C8230D152759AB1B0B6A7777CD490F76C6DD84B4BBD9AB35C66525060635BFBAB65C5147E4E1DE67312DE4600E4B88B8FFFFFF21F90400000000002C00000000140014000005EEE0278E6469924486AC9E8738C449108E37504A4E2152B1950441E230A8082A0ACAAE10B06462A24D025028180ACA1BE5A0590404D0CD0500307412958A92E239489A0E51A6DCA8772E85C1C0B60704322205000D068500027B0710071E12160B058183751709366D108B6F9022098517111C8C368A18101A019C1F1785131113128D021210A616A9911F9E060D131D77751A18181AB70B02220213850D1DAE1CC3A609A90B801F1B0C1D85BC1C99181CACB83FC90F1D75068317ACDA5EC82304090FF2BE84DB0101055023521111F20F139601B0E043860006FDFC3D609000CC897D190454119061DCC38B274200003B"

    elseif InStr(strValue, "firefox") > 0 then
        strHex = "47494638396114001400C40000F69F500D8FC9FCF4F0F79525E66B18F2AB83041F52CD3A0EA35231EA5D0E574449E37D4C07518AFBD0B4D64E100E7BB3023A708E6C56FAE5D5C47329DBCCCB7189A0F77821F8D86AC224070668A2CF5E363D698C355779FEFFFFFEFEFEFFFFFF21F90400000000002C00000000140014000005F6A0278A5FF991E6A89E25556DF056515DBD4A9F50190694651086E222B179720B0AC7A088301E0FA06232B8083A47090611592C3619681462A016AE9F8623C14E281E81F8830181202C8552A1CD3E20E0510C8277001D02047C090B153F828E540302020B09886C0B1C8E9A1103160D1F94090E180A1B998275101C1A03030D1E0488075B821C99641011161603121E0B880E070E1A080416113CB9BB0047A1A2C20E080ACAAB00787A077C0ED46406080E00171638391ADA7CD30A0809550379245A18186B89EE0057231F14F31807FFC308B45A20E0C48A49FD003A2070C6A08A231F241458A041C3820238B03C5C510285C3112100003B"

    elseif InStr(strValue, "firebird") > 0 then
        strHex = "47494638396114001400C40000F2F5F5B43735CDABA2EDEDECB19C95DBCDCDB35152BA72748B6E20B6181DD02728E4D5D6B31F24CA4E23C41015931E1FA11014D3C0BFC9999BA16C6CE6E3E0A82C25DF171BA12123C92126E61D21B38380D940439D54568C7542A7605CFEFEFE21F90400000000002C00000000140014000005A9E0278E64699E68AAAA03B59E45270812F08E11F240863D023E1185301A1C300E0989E02A4E08039CE3201A1034410021E0094A92A3496562034C2E968D6662F054129E83E1B0C9303814CA65CF706020090C010C090E09097B0911050F170F0C0A18170C0F0D0D0C180A941710027A0F8D1898181896A292A010111F1A107C8115190A0A879B3C65070F810101151616190606830F064D220B110B401133055505CF37D3D4D5D62721003B"


    '*
    '* Mozilla
    '* ---------------------------

    elseif InStr(strValue, "mozilla 1.8") > 0 or _
           InStr(strValue, "mozilla 1.7") > 0 or _
           InStr(strValue, "mozilla 1.6") > 0 then
        strHex = "47494638396114001400C40000116FD50C54A8CBDCEFC8D1DA2786DADAE0E6B3C4D595B2D1FAFAF7A4B8C9ACCDEE4FB5EF5E87AF84DBFD88A0B8EBEBE96C95C23C71A68FBCEC4283CE4A96E46BA7E8DEEAF6A4ECFFE9E5DEE9F1F9F7F3EDDDDDDC6BCAF97BA4D637A1E0FFFFFF21F90400000000002C00000000140014000005FCE0372446699EE8F015CEE0BEEE992407146C5B62158520C425DAA1036144068544C1A5081E9E9D28643209200F259E765BB00808002B8B86C361700F8D06810007042C07E4E04A40060F4147F0C900FE481045471B36030812010A1F167F00031B0C46111B1813000588007C028E484601110F0F97081F1500161F0A0060900C0101101A0F00141F1F1404B812AD8F0511B107088D151F6DB7A7041E040318C18AAB00128CD3C7BACC48D07CAC8B8D8B1904040BCDC0B1191FBD9C9B7DCB1C1EDA019B02A80A16BD0A020A1E0B0DF0E6F2FE801127CE033F0E17FEC50A48900085050B3834B840111E86858E1A1AE4077101251133428A1C39E35008003B"

    elseif InStr(strValue, "mozilla") > 0 then
            strHex = "47494638396114001400C400006F6F6FAD01019403034C0B0B680202A8AAAA999B9B060909967676270606C5CACAFBFDFDD4D3D34F4E4E313434C60101F50000E60101E5EAEAF5FCFCD80303533A3AFD1616818484F4F5F58D9494182424B8C2C25165655F5E5EFF0000FFFFFF21F90400000000002C00000000140014000005B9E0278E64699E68AAAE6CBAB423963515606408A32A0EF104810121D1909C16058D203208500883C4213379910C874300227810804242E5A2C08C3AD98787EB13043CEB00A163FC000E834844ED890C97700F0905220D5A1E5E101E14527802144F00221707048B030F111E020443099F03841F060E5A100F146E0F9C9D090E19661F0C680270889F1D05050839240B1B1A04147014031C75132794049A10411B2A5809C370020E7528A56FC4625628070216E216C50E3A2821003B"


    '*
    '* Opera
    '* ---------------------------

    elseif left(lcase(strValue), 7) = "opera 9" then
        strHex = "47494638396114001400C40000E17272FDFBFBFAE9E9F8DBDBDA4F4FCC0707C6C8C8E5E8E8D6D6D6A6A1A1ECA7A7D46161EA9696939393E48787D636369A9A9ACF1010EFB7B7F1CACACC1B1BBA9999FBF7F7AFB7B7939B9BB2B2B2CF2222C53535F1BCBCCB0000C90000FFFFFF21F90400000000002C00000000140014000005B1E0278E64699E682A0E0EE02A962A3AC5320812F54C2AE03D248927C23B293C1E06C9A2F9054C8147A7C32911900AD3A4302D8E16488249312D0C4ABE8E26360A383C9DC899948E084406C3C151AEE8D975771F10071F477113170D090601696B2210061F136567060D0D170B5362220910081F1A5D780D181B1D1E0E2310AE070C484AA61471821F1999A1529E2215B224010819101809A4591F02570028070806190B1B2E0404123223160337D9DE2321003B"

    elseif left(lcase(strValue), 7) = "opera 8" then
        strHex = "47494638396114001400C40000CB2D2BEC8687A9B3D09E8291EED2D2A75E65D5CAD0F2B1B2E34B4EF67173D2B0B5FBFAFADA6D6CC44A4CB51811E3E5E8A0A4C2F2E9E8D1D8E8D9E0E6AD2B28963332E19B9DF55C61E9EDF4C0221DBBC4DDD93C3DFCC4C88D4346FB989CFFFFFF21F90400000000002C00000000140014000005C0E0278E64699E682A1ECC062001A17E1103005557391913A18BD6A621F84C2A1907637152242E88A568C0CB1C4C8BC32170B18C143CA52962E170025791A1BA31112E094F82339A5032803669A1D86C101B32220F14377A461A1A0378370A120F0B0F0D7E082310101A10199B1B97021A060C5095229E10611B060210AB167217969E3B0E001C18020203657223ABAC050E3C1E1FB70373075E22B797101DC1521305171E163F230B13BE3B000901051B17312818128A1D852F161833ECED2921003B"

    elseif left(lcase(strValue), 5) = "opera" then
        strHex = "47494638396114001400C40000F6CBCCD7090CCBD2D2FAE5E5E25255E87173F1AFB1FDFAFAA5A5A5B3B5B5C55053DD2F33EC898BC0C6C6EBE5E5FDF4F4F5FBFBF3F4F4DC4144D27578DCDFDED91B1FFCEDEEDF373ADA1115E01F23BFBFBFEEFDFCBD9EA0ABAFAFB2C1C1FFFFFF21F90400000000002C00000000140014000005BEE0278E64699ED63058E7091452511084D18E4685D9DF20058547CB800930488022E360B2FC2A0092338089968898CC8074280480A5EEF7C222158A8BB2E841F84A842406152A3A441CBFC0BB24C754451A14786E1A0D1411227D7F1F1A1F6C6E1409081D02107D741F09885E7A760D08080D136865081A104401691F079F1D0A45054C1F1DA15398119F793C1FA00802A947221B1C1540701F141AA01E130119568F045B5C0E020D1E1C12120C0C04170C6A27101B1100E700E237EB2421003B"


    '*
    '* Camino & Phonenix
    '* ---------------------------

    elseif left(lcase(strValue), 6) = "camino" then
        strHex = "47494638396114001400C40000C9CFD7324670EBEAEBAFD3E7CDD8E5729ACCAEBCD69098A698C8E36DA9D55A8CC54A78BABFC7D77787A5717E9783B7DC63738D90BCDE86A5D2A7ADB84C5D7D273C6995A3CB99AFD4324A6E2E46723A527A324A72364E7A36527A2E426E364E7621F90400000000002C00000000140014000005FFA0D68DDCD87194569662CB69AA5A6687B3BD6B279EDDE7F71BC2C4F339C538AF8FAA97D93804024DB3F8FB70ACCC0683C0051828199FD8EACB4C081603C360B91020E1CF6623A6011400060320301408600173571B14040B06171212176A121613157373191507060B12050A0B0A8A170B0C1F15611A10070405120BAC9D05AF880007101A1407509B9A0ABBAA120A0602130E52151513080A0F0311CC0F1211090C1415181F191E158609080304030308110F0F06D51A1F1EE9C608DC5CE00F090010D53EE9E9180CE0DFEC0FB2013E732AD8ABF061020070DC1834F0406712367BD86C0990670DC3A4000104A613B4E19A2C49733004F0702D5D068ED53C15CC6218E0DAB5621E0288B488C1A2069125D5150B01003B"

    elseif left(lcase(strValue), 7) = "phoenix" then
            strHex = "47494638396114001400C40000F2F5F5B43735CDABA2EDEDECB19C95DBCDCDB35152BA72748B6E20B6181DD02728E4D5D6B31F24CA4E23C41015931E1FA11014D3C0BFC9999BA16C6CE6E3E0A82C25DF171BA12123C92126E61D21B38380D940439D54568C7542A7605CFEFEFE21F90400000000002C00000000140014000005A9E0278E64699E68AAAA03B59E45270812F08E11F240863D023E1185301A1C300E0989E02A4E08039CE3201A1034410021E0094A92A3496562034C2E968D6662F054129E83E1B0C9303814CA65CF706020090C010C090E09097B0911050F170F0C0A18170C0F0D0D0C180A941710027A0F8D1898181896A292A010111F1A107C8115190A0A879B3C65070F810101151616190606830F064D220B110B401133055505CF37D3D4D5D62721003B"

    elseif left(lcase(strValue), 7) = "chimera" then
                strHex = "47494638396114001400C400005570AEB2B1B01FAAE9F6F6F4AAB6D19AAAC95B91C5B6C2D66F84B8DDDDE20A4CA4C3C4C1D6D8D8315EA8DDE3E6ECECECE4E5E53272B68E9BC4828EBA1569B6C9D4DFECE9E5274E9FF3F2F1E8EEF5CACCD31183CD032E90F6EFE9FAFAFAFEFEFE21F90400000000002C00000000140014000005FFE0278E1FF6789F37A0645B42CFC014078461AEE841B0531D9AC9E471638D76908C2751C97C1E1A826402317E200ECCEAF1B812080509007112610E87C1609490B8DF00C2FA6389AB1E89B65088980000556717080C1E08001287877F8C0C0F1605170D08160762898C0D001700093013929A12150811A50DA80D9C09160F080AA8140D1106690F051117BA17058F131CB014C2110937031A0D0A171C00160C04C0C2C2061D163C1015050A1C050C0B0BC9C21B1B0215587995CADF1A0BDA14E302F11579101D111C12DF0E010B000AE4F1041CB060C1810105001604D0808101BF83140256E850E160840301029C80B290400405FF204880D52D238335032C1F68E057818001030560565018C0118B010FBCF16390C14186950B13C4F81002003B"


    '*
    '* IE clones
    '* ---------------------------

    elseif left(lcase(strValue), 12) = "avantbrowser" then
        strHex = "47494638396114001400C400005971F84B46B58C88CA5450C8ACACDB6757F1736BBB483CA964ACFEC8C7E65688FEF8F9FC5459EA516CCC7C7AC55F69FBAFB4E0D3D2EAAECEFAE9E9F537289B8AB0FCE3E2EFC4DAFEC1BEDEA19FD4D8E0F6589EFEF2F0FA4636A24E42A6FEFEFE21F90400000000002C00000000140014000005F7E0F769444640688A9644247E099144496DDF75062D969909C0A010A813441C488372C934389448472370F0583D878EB6E3095CBB8DE9619C3D086602CA561B080F02F08E216221583EE92DDC3DE64E121E141E131F066A636D53581D180B011403191C1F13036A1D896F01031F1103761806099D1E6C6E540E1F1C16A11D14060B30880D006F1D02AA061D075E1D191119580300B57019AA54705E8BBBC30A0C6FA30B069B03D66F9AC31B0F0C0C18180203D00C0F0F05D703050A1B00DD6FDDDDE5E605F4F40A080AC4DCF1F2F3F50F08346C6047ACA03E7FF4005CF820618382870F0D0298F700408558231068DCC8716385851F4200003B"

    elseif left(lcase(strValue), 7) = "maxthon" then
        strHex = "47494638396114001400C400008DB3D8EBF8FBB7D3E94C79995986A36F94CEDBECF73D6BB82D5BAE74AAC40244A25278C5DDF5FAC3DAEE598AC9ADC8DF15457894BEDCC7E6F43B698D3087DA2D77CA265298A1C6E4D5E4F3084690023D9968A7DDCCD8E282A1CAFDFEFE024AA621F90400000000002C00000000140014000005FFE0277ECAB7445210604F712063AC1C822A098DE1799C138B8A02837101442E110040B0EB94481A474012113002BB80A16808104687E1A6313498311843CBC099200E97C0069536481A82BCA0D03174100B0C121417572A010C666C1D340F13091E001411583B962A0D0508000D13941B141B3A06790F0F18010F2F050203171E0E14140D1E0F0E05050B71001608050F0411B015B39152060B0006BC070517031D1E0515154C00810607000CCC0511130B1E1708D5910B5ADA0C11800909101FA8AB000EDA7F0B1D2E0E00041041E2BDBD102008F866C18604132C887810E08FC037070E2C987870008403222C58B91671E202070E2A427803C402000C020029E0C27510E1C503154628C83000C003244912F08360A14244191A3258983060C0040810342880582104003B"

    elseif left(lcase(strValue), 4) = "myie" then
        strHex = "47494638396114001400C40000B3CAE36CACEE5399E4C6CCDA9AB1D41E66BE085AB18A95AD3688DA89BAEC506A9874849CD6D9DE0C3566ABB9D1F6F8FB2E558E084996247DD74593E2EBECF436526E73A4E085A3D2EBE9EB356DB35281C35BA1E73E608B0A6ACA0E6ECEFEFEFE21F90400000000002C00000000140014000005E4E0278E0F033828F38C2C395C96B50993A6116BFB5184950481D964822864182D5EE2B71122101249273220117EC1CDF019F5780C108CC8B10C6EA15E4FC76BD0EC2E4C807C494F58D65393259BD331226B11170441021B2B0F14188A2B0C0D6B060A1766022B070D980D0E1F8E90101742132B0B10030019049C8F5F9F3408A21F0B1C221CA99D5FB5AF4FA3B31F15B6AB110B0C195008030C0A1C0C0C15170C0E8F1D0D001F1A5D069806110D11DBDD1E11108D065E1DE76A78E8D955638069F069D9072D04DE6BF1530DF47E0A11DE060272E3D04E87880107144080A0E040C1112100003B"

    elseif left(lcase(strValue), 12) = "crazybrowser" then
        strHex = "47494638396114001400C4000008CBF4036ECA0C43560C334C04A7D3036EB20596F40789AF03508C0298D705CCD704F9F9022F6711263A02A5FA025BA509142A04A7E503081604B6FB0283C4029CC80CE2FA03BAE118F8F802669A02E0E90284D5043E78021E4314BEE602020221F90400000000002C00000000140014000005FF60238ECDD008A60889E910BCDB4311C4D5B94942BD91993816454171591C3E1D8A62F33200501705E652F11016838F0411504622134143B1D024009A34A4F3E1EC689B678372994C1C914541F2D866E8111411022B6B0205091E102E100C140B160E040662125A101296100F617C35060E61031C981C0F1C0C1C880C99122B030C25050F1D7C1B31151A0F0815071C1F1F2C2F0FA514090B0B711619106B0F2615150614B50FA0110A0A105A020F098405111600CE1613091A1D101C08BB0462050E467C1A0A191B068D1919881726191A26342350615B074A030A50D8E0C08189021A1048B8E18A8304010224CCC00080520302112C7D58876083444B08043051A030604002045A063C08C0A400032D08F8CD6899E001036F3F72547809A124A830254C0CC08882A998060C5A8A0901003B"


    '*
    '* Netscape
    '*
    '* @todo    netscape 3
    '* @todo    netscape
    '* ---------------------------

    elseif left(lcase(strValue), 10) = "netscape 7" then
        strHex = "47494638396114001400C400008AB3B5696B6BE6E6E6333535FDFCFC70ABAC23898A1A84861373748FC2C34C9A9AD7D8D89498983A9799A8CECE117D81A1BFBF61999953A4A5A8BAB9D7E7E7438284B1CACABCD9D9EBEEEEC4DDDD2D8E90499EA03A8E90C7C3C3000000FFFFFF21F90400000000002C00000000140014000005D9E0278E226112644A12820514050009A82A6256D168C6E1730081AD95286C7686E4E31111923080044072E41D96CB08664480480A8E4B41C36B241C8525A0265034368A0C419234282EBE07C76921EF1214181A3E1A090F79132200066406097114060F85876A2611074907091B0714190F8E084B080528989A9C071A180E9B08B0A5286979090D4B1C040E09B1B21F16871B0517001111150C1D131515B0891F0B0E190C010B011ED8D903DB154E0413031E03D4E1D9E601351F02E5E6EDE25B240BECEEE20B3618D7F401F036D0E4030118D8EBA7C204C110003B"

    elseif left(lcase(strValue), 10) = "netscape 6" then
        strHex = "47494638396114001400C4000052B1B7F2F9FA136B7553595A92CBCF31AAB1197A841A8690252222084C52B7B3B371ADB20D5D65D2E6E82C9DA5228E98507F81A3CDD027969F4D9CA4717B7C0541478ABCC13C949D353C3D23848E6DBDC2619CA1DBD7D769C2C7B1E0E400000021F90400000000002C00000000140014000005B160252664699A6295306CEBBEED0A0B340DB702932DD656D31B4BAFC6A819328DC04460681A2C0DC38FD9142C02818BD3702150A5CE8361B1486A338709E1987166DE07CBE412685C0EE9C8E18D3E3CFE71000700751283117F7F190F128D0F0400120F840D1200118D8E120E9C12909D1A011E979B9D9C0E0505041D050000AA581EA9A7ADAE10111418BABA0314141B0BAE0510031808031C0A181FCCCDCDC710CEBBCBCED5D6D7D8D9DADBDCDDDEDC21003B"

    elseif left(lcase(strValue), 10) = "netscape 4" then
        strHex = "47494638396114001400C40000A5A2A3986046605B57A79D62A48C21DBC790DFE5655A2A100F4BC6755B12F1F1EA0827A025070CCAC09F163CACD4CE2B110F63D7CDD0CCBA5DB6A721877E7A413B3DC0C4E00B3C6BDEDCDDBFC3C0003FC43F5193BBB9817F8027D2B0BCFFFFFF21F90400000000002C00000000140014000005FF20228EA273390E396E88A6A1AEB60407B4C40BB201ED75300CCDE5F260D85C950404F0694108092043D0F8D92E130283D99251120982843398240E140A83C2752D2A8A077870E84C3834B6A2E9DA44260502440C0E09010415007B7C1A141C35006C0774071207191F990E0B101C511010130D5A02001D09141E1E181403030F04621405060601121265041301151502B302010100B511070114151CA70915A095461B0154143416AF0C1569080B0E724B0715D4050109B60C19190A5D09121D53C2151E0706006B998C0B149649130C93468953C4C7C18061033A0C20C3EB408207074AB1734061C28F3AB86844F4F0705B846E070662A8D08182800A983E1D44F04581DD866D0415244399EF03060C9976D85CF40140C408356B8600003B"

'    elseif left(lcase(strValue), 10) = "netscape 3" then
'        strHex = ""

'    elseif left(lcase(strValue), 8) = "netscape" then
'        strHex = ""


    '*
    '* Frontpage
    '*
    '* @todo    frontpage 5
    '* @todo    frontpage 4
    '* @todo    frontpage 3
    '* ---------------------------

    elseif left(lcase(strValue), 9) = "frontpage" then
        strHex = "47494638396114001400C40000DC905BED9E30E0471EE4A18BF5E8D4F6F7F86B8CC4649533BBC5D8ABCB8D8FB7DFF8D54FFAE8B2D4D8D8F1D68DEAEBEAEECBA493C74FF3D1C4F9F7E6879F69F8C509C3DCEDC6E0A9F8E491DFE3C7ECF1E3D7BC87BABFAD7EBB39D5E7F7FEFEFE21F90400000000002C00000000140014000005DFE0F74964291162AA8A83E0BE4100AD2BF002381000B4DA021E0DE101090C3E856461D53AA6183B8F626A302C5902C0F5031D5814D52A22D55411000329A280308C593B82FC3339152C8F8FC59D8208620B46501B7B085F7C2213036838030F681E060A91060D2B1998190F134313191A9E9F2A0C0BA50B180C150E171D171711B01A291815A60E19011B19141C19B01D1CB3151B0F0F05130CA0A2051707C122B41B4F1518AF1722CDCF1F45D222A9AB1D091A1A09CE7DB913E90EC3AC1D1D07F0DA103A31F51B050914FAFA96221A39009F2949B2A2808707418A6DA11102003B"


    '*
    '* AOL
    '*
    '* @todo    AOL < 9
    '* ---------------------------

    elseif left(lcase(strValue), 3) = "aol" then
        strHex = "47494638396114001400C400005994C4BCD3E62774B288B2D44889BE74A5CDDCE8F1A5C4DD1467ACE5EEF5D3E3EEEEF4F8CADDEB93B9D8689DC9357CB7B3CDE3FDFEFEC5D9E9045BA5F1F6F982AED1ACCAE099BDDAF9FBFCFAFCFD9EC0DC7CAAD0F4F8FBC1D7E83E82BAFFFFFF21F90400000000002C00000000140014000005BEE0278E64698A8BC29DAC786C8191B5E64538C5D0ADB4A83D1E42A12189F43E17044021321E071ECEE2D28028281FC582D56024009B4EC210581806062769EB001C248A8424F01954AEA6C40330D04002100D1916000D010C6A1F0602371B0354051816040000151824190F080F946D0E1F1B021E0309240A1907130802AD0262020E4C2510104808131302071F1A162C1A051D1F1C0C0C5B1F8925171E150D1D0A06471F0D7B007B1DCA270D029D1AC847010F03660758D398C918DA2421003B"
        

    '*
    '* Other
    '* ---------------------------

    elseif left(lcase(strValue), 4) = "aweb" then
        strHex = "47494638396114001400C40000ECEBEB8483839A9A9AD1AFAFC5C5C5474747D2D2D2B04B4BFAFAFAEAF6F6DCDCDCA4A7A7B2B2B2E5E5E52B2B2B686868ED3131797979CB6C6CED1414545454141414DAE3E3F6F6F6F1F1F1F9F7F7F2ABABB5C2C2E88383FE0000000000FEFEFE21F90400000000002C00000000140014000005A4E0278E249995289A719095BE1AD47552F28E81004C73370DB70FA6E2B0707AB4E0C25361586493832048F1780289C121B030DC0C0587A7D0C06C0880602052AD103E1744F0526008ACD3A0884131282A1E0F187A1F0F010A1F051E0E8841000E0E0514624D7A021402020B0156111754020600000D62645F050483220F4C6F2F110F5E230C782F18050B0D240D8005029F25170B04C1B46B87722518692508A300AB2221003B"

    elseif left(lcase(strValue), 6) = "mosaic" then
        strHex = "47494638396114001400C40000B4B3CD6E58749690AAF9F8FBC3C2D04F4990726EABD2D1E0483293302D6F352D86987558EEEDF5170074413B78514FA9766A832907A62000921F156A19008476684BE1E0E80602549996C2A7A3C6615EA0817EB25F5B8F4536BF3B09EFFEFEFE21F90400000000002C00000000140014000005C6E0278E64697105319007B619706C6CCEF43880C8685352149CA09093E8E1440585AAC472380822C0E450623098A381A040226C200844063BC07045828A3A42A118B016053533592C1E9D087BCCCC140E0E0D0801051D01153F581F071B17141212111E106A0E5764130D907A0A150B0A1B5458818F9012080B080705397D179AA6080E63040A165810AF6D0D131B23B32B7D351347BF18C158562507135003040E7F8A1FCF0A0F51090E0A0E1ADDDEDD05080A1A9700090ADB32311B1B19A222CF40B7D32521003B"

    elseif left(lcase(strValue), 6) = "smartexplorer" then
        strHex = "47494638396114001400C40000E8E9F85A5A5DD2D1FFA6A6A529E22A6B69D39192F8608FA6A6A5FD444483C7C7C66868B6BEC0F67691CD51D66F2A9D42B6B6C366668D8F8FC56DCC8913BE1196CBBC54549D497E7389B4D09293AB827EEC34345C81818537C24FD5D8DDFEFEFE21F90400000000002C00000000140014000005A6E0278E9F504D53E591EC08200D217797D4928061604EDF1489C54D84403018158C41B3B02420B71C422060601A1A8B337213188CC709E15058241280965787C0C808BFC425CDCA15EE860E81F2685E860877051A1D147C111650514B1A0D7C174D1943220C8307904D117493120B9E4D4F9323125A5A672BA21F1067671B68A91F1E1BB3B35CB01F191C11011B03B7AA0A031C01BEB710C1C3C5B00A10C201A8B71ECDD02C21003B"

    elseif left(lcase(strValue), 6) = "hotjava" then
        strHex = "47494638396114001400C40000D3B7B5695D94C875719289A9F6F6F6C59290EAEBEBBAB5B6B68E949391938A7395C8525269666AABABABCCC8D4C2A9A8ABA5B7CFBEBBC6C2CBE4E4E3BAB6C6D5C7C6D8D6D8A09CACC46765C19D997E7E7EBBC3C3EDEFEEC48380C1BCBDFEFEFE21F90400000000002C00000000140014000005C4E0278E64699ADC040011779A4F913D5C14BD24201CC56D7804DCC75078780A0240A633114E660FCCA223280887B3CE42D079DCAE954C6181796C32AEABC583C16422878144E8080C14F87C8082230C021708080314178474801717101E0310412F0616019476121290271080100A010A140E1012062604159D95AA10141626130B1502111E07070C09161C0499231C0B631D48051A0709090D091725060B126D051D191A091AD6170C69224F0750070F1A0DB51E1B0D4D23041C06EAEC1304EB06F19021003B"

    elseif left(lcase(strValue), 8) = "phaseout" then
        strHex = "47494638396114001400C40000FD912364A2E8D5E7F8D2D4D7AFD0F28FB9EC9ACCF6F6BA901B6ED8F7CD56F5D1A8B1B2B0EBF3FAE2E3E2F1B448FAD9C0F4F9FBFE944DFCB47A3F86DCC0C7D2C2DFF8FBEEDDD8AA44D9C4B5E48318F2E8B4FBA360C4A77BC29252FEE182FEFEFE21F90400000000002C00000000140014000005FFE0278ED6B145A8F48C2C2945DBF13CC7BBADEDF744C7501140037077683D000A4AA140A00808CC0206501459A8CBC2C42010542613E61427D928278840A3FB44A4298708E4AA28B8270C43A1126010EE03480A00146E0861080502690186011B1B1200688C6E7B68886E1B001B19943F1301040201A1108D081D9C196E7D06060CB110158A04681900129E5B0C02105EA3B1BD60193C000B01020CBF04AF0615C20101000E811CA2B20C3FCBB1A40B00180D1209140142155E5C3F7A0509D50D14171E7ACEF5F40A0EE10D030BF20305F65E11D0E080C380060C06F093A7A1824387021A782848E120837D142870B890C083470FEE3A2CA88810C2C50119170B6CBCC092C3C88A07218400003B"

    elseif left(lcase(strValue), 8) = "k-meleon" then
        strHex = "47494638396114001400C400006565658F8F8F69B42CD4D4D48B090E506E1A2B2B2B889621F3F3F392AD295104095691236989236E0E0E2E06054C5124CAA82877881F828C1F60AC2AB3B3B313020275791AA90D1224260989561A3C4912772E129A0A0E9E0E12020202FEFEFE21F90400000000002C00000000140014000005FAE0278E43609C06308CEC8878B0E3284E05AFED47C10AD1759C0E41610BB4760EC205080C5E080E8F51F4AA702EC160D3B789E2021EDF4FCBE1103612C1C3F6197814D8A0AF4CC808EE058587022694FF046716771302130D1500060E5B8119100913050B86131B0A270A660D191209900C050516919698069A1B77950B0B1A1809020B1197270E66930513130B05181A130C11050D9800150A0DBF050C0CBD0F1A0512071A340F6E0E0D0F0511D316A2CC07070F7A46C74234180FD3EC07B451086D150E4B501E18D2E20CD57B23600A1DB0348882A1A00C292DC0546810D08C82874572B48991AC58947E123F20A0A0C80006030F02C4631102003B"

    elseif left(lcase(strValue), 6) = "galeon" then
        strHex = "47494638396114001400C40000CCD0D2ABAFB2EDDDA3647586EBEBECA4925C88929BF4F4F4909BA754657931435C7885944B52584658711E1D636768697A775E13132A9FA7B1B6B9BDC3C7CADFE1E2D7D9DBC4B6CAC4C2BEBAB292A69AB883817FA39A7DE6E6E5FAFAFAFEFEFE21F90400000000002C00000000140014000005FFE0278EA45805C151AE220510C83448EC487494B40448A204B5CFC1B0581025BE848AE5012C0681C1E4F004D40E88E7E050B158009D8F6582F1909C0B424E129848069B006693088B0806094202A800263D34071A0E0F2416067D390603090D04041A0A0E1123431614598E0D0A0A0017170D94231512140B090C9D0A0D3A13170C11862606069C9D0C0C1B1301AA110C04421D150303B70C0202050F0063142207CD580D0C0F10101C050C08031524021918131CD710B91B0C063D0007661F181C191C1B0F9D0D0D09C50D0360EE1E142802E84840305F2303182AB813E18140050C018834CA6720C08B850CB900C0200EC504170496ACF0700012A40E90DA03910801003B"

    elseif left(lcase(strValue), 9) = "konqueror" then
        strHex = "47494638396114001400C40000ABD3F5A8A8B5F9FAFA2462E1B5B7C3D5D4D7E9E9ED63B5FEC2C2C9E9FCFFB5E2FD99D3FE999CAE54A8FCD2D8E789B8ECCBCAD15B95EDD8F5FF8F8F9A6895E7C8EDFF77C3FEEDEEF3628FCADEE1E6C3F3FF4484E5F3F2F277A8EAA8C3E7FEFEFE21F90400000000002C00000000140014000005E1E02738D0F59D68AA8A0449AC305A98178340599171F1C7BD02C30500582C1E041E0C023164149A4442B3B0740C314266A1487CA6D50646B09A3D00D2A90670386C5EA70C820071342A1249B17A680C302808271C1E1B161A120A7C0D7E1B4A04170284031B0778157D0D117F261F06040C010E03031D0A15159B1D9B632A3A94A712091E1D0014030C102B081E1478090209894701BA2905C81E0AB25F894804012906BAD3001D1B1414001E0408060105325810130C04A00104E5DE0E132901A13C3719E464080CE619D2280682DD281C0A04D00743C0C009047BB8EA46664508003B"

    elseif left(lcase(strValue), 8) = "epiphany" then
        strHex = "47494638396114001400C4000073899E38903889A6C3919BA5476685FAFAFAD6D8D78FA88F6F936F529052EBEBEB6C7A895C7A98C6CAC84AA44A526C87B4BAB7F3F4F4A4B3A3BBC3BB6CA16CA4AAA9E4E6E442607E87919D9FA8B058728DBFC1C3AAAEB3DEDFDFCFD1CFFFFFFF21F90400000000002C00000000140014000005BBE0278E24592845A97E8A252A077528EBA83849572481E3342B0BA50109040C1263204153491C88C9328250424A8589448A2820249F6AA0A23250029EC344548874248655E110B876068B871ED354652D180F0C1A847A0B3522000F1A031D11180C0C87351C170F572203000C1B8800040B29111902009D9E041A18030302037D3519960C00A61F110D71350A0FA99C1F069B0F1D881C048B031F190C7AB02A0317C71ABD171C8823100FD1171764D723111B0315C4DF260A113521003B"

    elseif left(lcase(strValue), 7) = "omniweb" then
        strHex = "47494638396114001400C40000F4F3F55B849127692059A35A6787CA829FD61B493EACD8A635842F3155B0CDD1D15FD04C062F9A4D7A61536EA044AA365176CAB2B9BA0A25737E92A983AB888798911A45B42E539982C977E2E3E79FB2A5375DBF395F7123447C4467BEFEFEFE21F90400000000002C00000000140014000005F3E0278E24409E68563503D5540A5A56C28051C711384D9C360FCC64123844089301227202001718CDA13029140801A54F34412C6C074AD58A5D3C1AA64FC6F0787C2704EB153B681834A282A1810840087173580D1C1D0D221006171D09107F8080101E030F0808191F8B85171E8E908E1C6D9531090C061617091B9D8E929408A31F0E0CA61C1716AA1BBA179502969813B406BE09B809C7090202C3871F0A0C12CA960EBAD5091D160614230E12C3BE080E1EBAC516A69822191DD1D26716EFE61278240ADE08CA02D8B4D013320A1CCA0C74D82741423F140032442054B060070E30D234C9904141848B111428C800406208003B"

    elseif left(lcase(strValue), 4) = "lynx" then
        strHex = "47494638396114001400800000FFFFFF00000021F90400000000002C0000000014001400000211848FA9CBED0FA39CB4DA8BB3DEBCFBAF15003B"

    elseif left(lcase(strValue), 4) = "aweb" then
        strHex = "47494638396114001400C40000ECEBEB8483839A9A9AD1AFAFC5C5C5474747D2D2D2B04B4BFAFAFAEAF6F6DCDCDCA4A7A7B2B2B2E5E5E52B2B2B686868ED3131797979CB6C6CED1414545454141414DAE3E3F6F6F6F1F1F1F9F7F7F2ABABB5C2C2E88383FE0000000000FEFEFE21F90400000000002C00000000140014000005A4E0278E249995289A719095BE1AD47552F28E81004C73370DB70FA6E2B0707AB4E0C25361586493832048F1780289C121B030DC0C0587A7D0C06C0880602052AD103E1744F0526008ACD3A0884131282A1E0F187A1F0F010A1F051E0E8841000E0E0514624D7A021402020B0156111754020600000D62645F050483220F4C6F2F110F5E230C782F18050B0D240D8005029F25170B04C1B46B87722518692508A300AB2221003B"

    elseif left(lcase(strValue), 7) = "ibrowse" then
        strHex = "47494638396114001400C4000091B9C8CBD1D5FEFCF6A5C8D586AABB507192A3A7AB030E5304427F0726690365947A92A98993B265728D409BB7EBEDEECEDDE03E4F81488399555D7C8C8D92345D8FC1BBBBF4F3F5EAE4DD055789627CA53D7BA781A2AD7A84A01B6C9AFFFFFF21F90400000000002C00000000140014000005C6E0278E64698A83D6581FA46945D140E7174546F31147E21F91CBA9320974048C030583A11C0CC38211F9143D120D812952EC7C92D0D621BBED7EAB8F82525B224E1909A8E6506195038B5D468E7D9C36524704085003150805422580781F0084561509798B05101C020471230F1E0818250E128D8361229A76230E520B02030AA61F01B09597028FB1AFB11F1B121004B77B0217C40E19A922A200ADAF0A1ECF1E0A0DA0240012120602101231D7122B26031C04040000041CE9EAE6250F1001F0F1F2F12221003B"

    elseif left(lcase(strValue), 6) = "beonex" then
        strHex = "47494638396114001400C40000272A2B55565700B5EDA9AAAA016A8EF9F9F91535407889937376771414141B2022ECECEC16455403526CC8C8C8DCDCDC888888D3D3D338414490979B04475C5E6B710095C5BEE3F760606095AFC004101300799F92ADBCB3B3B300A6D9FEFEFE21F90400000000002C00000000140014000005A4E0278E64699EA8B9385A6BB45D2A56C7A4284D834485EC701783C1D3900026B20890C110340003D94779613AA152AAB5919004100EC72992091A080D0D6563A1502026B29960A82000048180F128C9B70A1212067A1B183D2311355B0034840216095123050F0B8C1D05127A16001826059811147A0482A05B090106161E1E829F2505421B046AB582131A482603031308C10810C409000B290F37CB37017D52D0D12621003B"

    elseif left(lcase(strValue), 15) = "ibm webexplorer" then
        strHex = "47494638396114001500C40000D6DAB5EFF2CC31AAB7E604E80202E962635BE404092F6762BBBAADF6F5E7D4D2C3EE99D88B8C7998998B131721AAA58F8A8EDE352CA34E4CA8E2E7BF8717693F77D73B3ACA85B8B03B72B237494A640D09387F7E1B323656FAEACEAAB68C8A8021F90400000000002C00000000140015000005EA60228E64492A0AA2AE6CBB36CA14CC4950D3F63C031F304996A070288C3C129F5884C06C4A964D2624909C602A98AB40701164B1D90B3576386C04E7CDB9831694C58C58265328CC376577B9FC184F321A06061A1C1B7719658862551C8182191C0E0E1C190E730E0D7E0514821A7873191403A3030B7E070E1A1A909292A2A40B1355901C85B5B7AFA3A6717FB507B4B8A4A5B20A010FC708C7CA0F1E0BCE0B31493E00000AD4D7D8D5133C290875DFE0E01F080A301399352201131323002AC53D130C3AC976050D08090D1146630A0FD8099411C0C736810A1834F8D0808143871F3E408C28916208003B"

    elseif left(lcase(strValue), 8) = "doczilla" then
        strHex = "47494638396114001400C40000950713F9F8F9746466A8989BEDD8DBECF2F192555C90666BB90418E9A2AAE4EAE9CAB1B4EB2846CB001FD65260B6C4C2F5E4E7EB4157FF0227CFD9D8E40019D2969BF090A1AE4049ED6D7FD41C33B8757BDEE8E7E78A96EFC1C7FAFEFEFEFFFF21F90400000000002C0000000014001400000579E0278E64699E68AAAE6650400471425D977098133119021C9E92C20028021048040521D8980A93E8E4411D641A02054BD461500485EDC722C16A59014C19BC8544D661562703DF5694CCB82AA0390204412B04174600170E88890E1A150B04610B0607929306969797071A0B221E9E9FA0A19E0162A5A6A521003B"

    elseif left(lcase(strValue), 12) = "msn explorer" then
        strHex = "47494638396114001400C40000FAF8F81EA957E865454DA6CBF3CA4B0F9887F0D990A7D3EA678497F07B461992CCDBA48CCCEDF7E7F8F9FBFCE7A6CDAEA58B99F49B4262C180237FADF1E4D6EFCDB6FEC03BED8F5FD1DACCF3A8607EB0CBD9B167F4EDE9FEFEF6F6FEFDFEFEFE21F90400000000002C00000000140014000005F0A02776DE677E00F0798DD701A5F976DDE9D21E502D157502B39AD0E1A02C04C8858AD5127D481EC70E89BCF80E03CD81D1F8385C860B958AF16826E8C1A101A3641289B10003600C14F889865B81C7C7740D1A770A691A0B1711706314300C8384130810191911177F171C301E07900A05920B9698710B1C270D9E0305AD93A47E152A262C580101A1101B97981115A8271F0D0F05B7921B1611CA04B235271D0D12B71208C816D7161531271C1D1812E0121B04D806C0C1290E0FE0010F0604F0140EB3E80E1CD201180E0606180C5CC1640089F6A005110C1A10740948034503061E386CE2F08F5E405A232C9A0801003B"

    elseif left(lcase(strValue), 9) = "netcaptor" then
        strHex = "47494638396114001400C400005B8FDBFCB17EF8974F9FAED42165D0FED088FEFBF4FEECD5ACC0E3FAC7ADD3C5CBC1988FE6D6D1274498E9E8E9A10F065767A0D2E6F8FE6A1AEAEDF1FFE5A3E13100EAF2FACCDAEFB25B50F7F0EFFDF6EDFEBF6FFAFFFFFDFBFAFAFBFCFEFEFE21F90400000000002C00000000140014000005DCE0278E64699E627724419018A4F7C9326724DB56EC8110D0B359877308142807CDE896100189010A7264E18832966147A6314E3F160460E0BC083F1CDC516401B8014E043023D81D3E110201B0174D104244023A1F177B177C641F0872431F098314170D641A7C80130013813D1B0B0D0830167A0379801E8E09129F0A230E7A04944A6707180D02302206000D10030C33A856080D1512021D24130C0B1923320810B515C62E090B18CD681DC9D10E68D80FE20F18AD1F5B22D19B231C0C0A0C32221C341710CE42F1EC42E80E9BDC41F1B8A1A3914C5F0C141F4200003B"

    elseif left(lcase(strValue), 11) = "qnx voyager" then
        strHex = "47494638396114001400C40000748DA7D4DBE3BCC7D2214975E0E6EC0D39694A6C8EEAEEF2C8D0DADCE2E8F1F2F58397ADA6B5C53559819DAEC199A9BA839AB1AFBDCB001751E6EBF0022B5F8C9FB4F2F5F7A6B7C8A8B6C48FA5B9F7F9FAA7B8C8AAB9C7FCFBFAA3AFBDFEFEFE21F90400000000002C0000000014001400000587E0278E64699E68AAAE6CEBBE9F2554CB139847A27C13317D8C8507F358DC4613C0C291A0412A8883A101F83C1C9BC9A431B8281816C86460C9481A090DC2F21114188942E213E17C06900E217A101C0009010281110D04020E111414058D05031F06121774140C068C08220A13071F710518198C03732A0710100A1615001B30B0B1B2B3B42F21003B"

    elseif left(lcase(strValue), 10) = "feedreader" then
        strHex = "47494638396114001400C40000C4C4C4C9C9C92D2B28B1B1B19C9B9BACACAB6A69678B8B8ABCBCBCA2A2A2959493858383FAFBFB7B7A79585655757474F2F2F14B4A48D0D0D0807E7E8F8E8E98989763626091908F898888A0A09FA8A8A8B6B7B6D3D3D3888686CCCCCCFFFFFF21F90400000000002C00000000140014000005FFA0278A120754599504DCE88E1C52291E036DD4DABAE5A9049F60F076D0896233807039DC28121E8986C6605A3F10C401810140AE5606E751B90C009C2F9821514C2C09CA068018A499628A65D23164E4741D72770C1E0A0E0211187D7F735C0D1900001E150D0D02891D7D04805A13099203130B1D98119A060A80090B9F921B0BB198020E180607071B1E0513139100B0B2980F140613451A00040D1367C111987B0E0ECC1A184566AFB11388D0B40F0764191D070500011B1D180D88B416161D030A0F0D0404E4030813DE0EEFC40A1B0A68B8F0E08102020A10187067A001050510E90C2850A0D20302081A583056C15EC70C012421D840524338831A04066A4839604008003B"

    elseif left(lcase(strValue), 6) = "safari" then
        strHex = "47494638396114001400C400006062648E8D8EEFF1F36485AFB0B0B04372ACA5B4CDCA4E253A9BD39AC8E5D4D7DABDC2C772A9CD44AFEB8C97AD578EC254B0DAD1E6F151BEEB7897C4A57981353637CBCAC9474849DDDDDCE8E8E8D0D1D22781C39C9D9F7A7B7E6EBAE4FFFFFF21F90400000000002C00000000140014000005EAE0278E82650963AAA602C12D9682AE2A46600AAC59372DDE8B4067D809108E344246E830380D8EA15165623A174F87B0A34971389DC16432308C039401B833D2700283785CF1A01CE41C80E22378730A05030F0C7507050F6304531A427F8087030700090F950601011F16987F9509091800841BA406451F185F0495A41A0E0C1E1008081B1600991F2EABA4090308110810100D0C1A15042219450B081E0CB31E0D121210110115331F01000B0BC30DE0D21211C6B82202001716110910D31E09251717D9C9F31C181919020218D717196828AB70A1C89B741D02FAF8C0281D805B7B16B2D0572F4508003B"


    '*
    '* @todo    Multizilla
    '* @todo    WebCapture
    '* @todo    WebWasher
    '* @todo    NetGem
    '* @todo    Ad Muncher
    '* @todo    DAP
    '* @todo    K2pdf
    '* @todo    WEBTv
    '* ---------------------------


    '*
    '* Mobile
    '* -----------------

    elseif strValue = "alcatel mobile" then
        strHex = "47494638396114001400B300006265626F716FB1B2B0898B89E5EDF37C7E7CF2F2F2E5E5E5A4A5A3484B47FEFEFE55585400000000000000000000000021F90400000000002C000000001400140000045370C949ABBD38EB3D4749DC940487008612A21CC1B925C0A12888BBA9336B5FB031CF350EEEA7D30008BF5F109318268B16982CA9640AA84FC06E11C32611D1AB97A8A5240688B47A9D064413F0B83C8EAAA322003B"

    elseif strValue = "sonyericsson mobile" then
        strHex = "47494638396114001400C4000095A1A2035C286A9B86CCCDD24E9579F7F6FAE6E7E80590475E6A70B2DCB005A34F91C98F286C403FB37417B3663C885EE8F3EC6CC186BBCCC2EDEDF1A8DA9CF0F2F4027A3A6D7C7AE1E3E5B3B5BBDADBDEDDE9DAFEEEFA034915838E93FEFEFE21F90400000000002C00000000140014000005F6E0278E64419E685161583555263A5603F0300CE0BEF267780C41A0D361405406436C64B874029145E31029142093E40910B044128948E468AD183086D1E041DD40288B8DB5309914309A58E6E15880131B1C0512020C0F031303187400020D51121A1C18110A16440C12031A1318021E0000190303090E0A071601AB04A41A18040E02A1110D0AA8AAAB160F19911502B70AA7B7A9ABBA04008A1F00079607CF16B9C60AB303266B0E075DC6DC070DA013231E0F110F4444C607B21E19241A08027037D116C20417004B22EF1712090B114E3DB88000403814183C204070E1C283851732E843A10100C10BEC30F438414703A71E2100003B"

    elseif strValue = "nokia mobile" then
        strHex = "47494638396114001400C40000758EE2355AD4F9FAFEBCC9F18CA1E7D5DDF6849AE5A4B5EB94AAE8DDE4F87C92E16785DF9CB2E9B4C3EE446BD8AEBCEF0028C8173CCE1946CF5B7ADD3B61D6224FD0EFF3FB90A6E86E87E02951D3EBEFFACFD9F40F3ECCC4D0F2C8D4F3FFFFFF21F90400000000002C0000000014001400000558E0278E64699E68AAAE6CEBBE707C26CAF61D1D80191EF3210D86C5A2287C1E11492210C03C26948A6362E124004CC101408864028A01543AD1481010070451687C0886016601185CDE8CCBE5501810648081828384852D21003B"

    elseif strValue = "motorola mobile" then
        strHex = "47494638396114001400C400007D8E9B8F9DA9C2CBD3B5C2CEDBE2E8ECEEF24F6475ADBAC698A5B1607483B1BECBBBC6D1E2E6EBFBFBFCEFF2F5D7DEE5A6B5C3F6F6F8E6EAEEF3F5F6D2DAE2BECAD5C9D2DCCDD6DEA3AEB8AAB7C36F8290F9FAFAD9DFE7C6CFD8F2F2F4FEFEFE21F90400000000002C00000000140014000005FFE0278E62E4144E44AE64E349CF655997C4AE9BC770D45C2D97C6AA3111460AB09EE0A7E8AC0A0521455178502A88CE6270B88C0A9C820803A83E0E89DF4071707C1A9C87F8034810088F80215359432C1F0E17611F050906030C141A0601026B070A0D1216046202068D120B991A5B6C191304161C6E7A061A04189909070B6C100E0C950E1E091A00060B75B901AF07103AA41102001B1F64001D17089E5C191B0EC308141F2F0007141D1D00100A190B6F141C04010D3912CB16DB080803100422050417031FE8043D1D0207010703424430B0F1468795756A32CCF9722C1A8318331E1D60702382451D3C2C3C5AB090053E191D2C3008788384C508C76E028400003B"


    '*
    '* Robot
    '* -----------------

    elseif left(lcase(strValue), 5) = "robot" then
        strHex = "47494638396114001400C40000F6F6F6A7A3A3E5E5E5EDECEBC7C7C6B7BABA9999976654508B878552483A7870719DA19CDFDFDE53504ED4D0D02F2A29433B3792938FC0BCBAB7B0ADCFD1CDBDC1BFA59C9AEDEFEFB1B0B1958785725F59E8E8E7F1F1F1DCD6D7D9D8D8FFFFFF21F90400000000002C0000000014001400000574E0278E64699E68AAAE6CEB7E4020BCDCB749132632438A05154946A3F8541488CE4950F82C2090840671684410041363B3301812E0C7E140B8289424CF22FB3134208F86C2E018483C244E4D24301C160B0D13331F84280058140A3D2E16171F017B2D110C6D8C2D157801972F1B2F9FA0A11F21003B"


    '*
    '* Debug
    '* -----------------

    elseif strValue = "debugicon" then

        ' get debug URI
        ' get list of icons per page
        ' check whether list of icons per page has been sent
        ' send list of icons per page
        ' unset list of icons per page


    '*
    '* Invalid matching
    '* -----------------

    else
        strHex = ASG_STR_ICON_HEX_UNKNOWN_BROWSER
        ' store values into a temporary cache for debug
        Session("strAsgIconBrowser") = Session("strAsgIconBrowser") & strValue & "|"

    end if

    getBrowserIconHex = strHex

end function 


'/**
' * Prints a binary icon from its Hex representation
' * 
' * @param  string  strIconHex
' * @return void
' */
public function printIconFromHex(strIconHex)
    ' Requirements: only gif images are allowed 
    Response.ContentType = "image/gif"
    ' Convert
    for ii = 1 to Len(strIconHex) step 2
        Response.BinaryWrite(ChrB("&h" & Mid(strIconHex, ii, 2)))
    next
end function 

' Execute
strHex = getBrowserIconHex(Request.QueryString("icon"))
printIconFromHex(strHex)

%>